<?php

require_once 'Oos.php';

$oos = new Oos("http://localhost/api/v1");
$oos->setCredentials("luis@11870.com", "xx");


$s = $oos->search();
$s->setQueryText("bar");
#$s->setAreaSlug("/es/castellon");
$s->setTags(array('bar'));
#$s->setCenterPoint("40.0,0.0");
#$s->setRadius("50");
#$s->setNEPoint("49.0,7.0");
#$s->setSWPoint("43.0,-0.43");
#$s->setTags(array('caro'));
$sites = $oos->sites();

$feed = $sites->getSiteFeed($s);

foreach ($feed as $entry) {
  echo 'Title: ' . $entry->title->text . "\n";
}

?>